﻿<%@ Control Language="C#" ClassName="ProductsSimcardFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataSimNumber" runat="server" Text="Sim Number:" AssociatedControlID="dataSimNumber" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataSimNumber" Text='<%# Bind("SimNumber") %>' MaxLength="15"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataSimNumber" runat="server" Display="Dynamic" ControlToValidate="dataSimNumber" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataSimPrice" runat="server" Text="Sim Price:" AssociatedControlID="dataSimPrice" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataSimPrice" Text='<%# Bind("SimPrice") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataSimPrice" runat="server" Display="Dynamic" ControlToValidate="dataSimPrice" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataSimPrice" runat="server" Display="Dynamic" ControlToValidate="dataSimPrice" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataTypeId" runat="server" Text="Type Id:" AssociatedControlID="dataTypeId" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataTypeId" DataSourceID="TypeIdProductsTypeDataSource" DataTextField="TypeName" DataValueField="TypeId" SelectedValue='<%# Bind("TypeId") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:ProductsTypeDataSource ID="TypeIdProductsTypeDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataTypeName" runat="server" Text="Type Name:" AssociatedControlID="dataTypeName" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataTypeName" Text='<%# Bind("TypeName") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataTypeName" runat="server" Display="Dynamic" ControlToValidate="dataTypeName" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIsActive" runat="server" Text="Is Active:" AssociatedControlID="dataIsActive" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataIsActive" SelectedValue='<%# Bind("IsActive") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Yes" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


